package days9;

/**
 * @Author fengzihao
 * @Date 2024-04-23 11:13
 */
public class Demo {
    public static void main(String[] args) {
        // Animal animal = new Animal();
        Animal animal = new Dog();
        Dog dog = (Dog) animal;
        System.out.println(animal instanceof Dog dog1);
    }

}

class Animal{}

class Dog extends Animal{}